package com.teradata.cxf.util;

import org.apache.cxf.interceptor.Fault;
import org.apache.cxf.message.Message;
import org.apache.cxf.phase.AbstractPhaseInterceptor;
import org.apache.cxf.phase.Phase;
import org.springframework.stereotype.Component;

/**
 * @author lyndon
 * @date 2018/7/30T16:56
 */
@Component
public class AdapterInterceptor extends AbstractPhaseInterceptor<Message> {
    @Override
    public void handleMessage(Message message) throws Fault {
        System.out.println("handleMessage()");
    }

    public AdapterInterceptor() {
        super(Phase.RECEIVE);
    }

    public AdapterInterceptor(String phase) {
        super(phase);
    }

}
